package com.connor.kh.plm.createprojectfromtemplet;

import com.teamcenter.rac.kernel.TCComponent;
import com.teamcenter.rac.kernel.TCException;

public class DeliverBean {
	private TCComponent deliver;
	private boolean selected;
	
	public DeliverBean(TCComponent deliver) {
		this.deliver=deliver;
		this.selected=true;
	}
	
	public boolean isSelected() {
		return selected;
	}

	public void setSelected(boolean selected) {
		this.selected = selected;
	}
	
	@Override
	public String toString() {
		String name="";
		try {
			name = deliver.getStringProperty("object_name");
		} catch (TCException e) {
			e.printStackTrace();
		}
		return name;
	}
	
	
}
